package com.usts.advertisement;

import java.util.ArrayList;
import java.util.HashSet;
import java.util.Random;
import java.util.Set;

public class Data {
	ArrayList<CustomerBuy> prepareBuyListData()  {
		ArrayList<CustomerBuy> buyList = new ArrayList<CustomerBuy>();
		Random rand =new Random(25);
		
		for(int i=0; i<500; i++)
		{
			CustomerBuy customerBuy = new CustomerBuy();
			
			Integer itemInt=rand.nextInt(1000);
			Integer userInt = rand.nextInt(100);
			String itemId = itemInt.toString();
			String userId = userInt.toString();
			customerBuy.setItemId(itemId);
			customerBuy.setUserId(userId);
			buyList.add(customerBuy);
		}
		return buyList;
	}
	
	Set<String> prepareAdSetData()  {
		Set<String> adSet = new HashSet<String>();
		Random rand =new Random(28);
		
		for(int i=0; i <300;i++)
		{
			Integer itemInt=rand.nextInt(1000);
			adSet.add(itemInt.toString());
		}
		return adSet;
	}
}
